import { PlayerDialog } from "./PlayerDialog";
import { GTextFormat } from "../../../../common/GTextFormat";
import { FontUtil } from "../../../../common/font/FontUtil";
import { FilterConst } from "../../../../component/gconst/FilterConst";
import { Language } from "../../../../../extend/language/Language";
//class BusinessTaskCount
    
    export  class BusinessTaskCount extends PlayerDialog
    {
        constructor()
        {
            super();
            mouseEnabled = false;
            mouseChildren = false;
            this.initUI();
            return;
        }

        /* internal  */initUI(): void
        {
            this._cycleCount = new Object /* flash.text.TextField */();
            this._cycleCount.selectable = false;
            this._cycleCount.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._cycleCount.defaultTextFormat = new GTextFormat(FontUtil.songtiName, 12, 48895, true);
            this._cycleCount.filters = [FilterConst.nameGlowFilter];
            this._cycleCount.x = 0;
            this._cycleCount.width = 120;
            addChild(this._cycleCount);
            return;
        }

        public /* override */ updateData(arg1: Array<any>): void
        {
            this._cycleCount.text = Language.getString(20510) + "：" + arg1[0] + "/" + arg1[1];
            return;
        }

        public /* override */ dispose(): void
        {
            super.dispose();
            return;
        }

        /* internal */ /* var */_cycleCount: Object /* flash.text.TextField */;
    }
